package cn.edu.scau.cmi.wangmaoren.hibernate.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * Teacher entity. @author MyEclipse Persistence Tools
 */
public class Teacher implements java.io.Serializable
{

	// Fields

	private Long id;
	private String name;
	private Set students = new HashSet(0);
	private Set students_1 = new HashSet(0);

	// Constructors

	/** default constructor */
	public Teacher()
	{
	}

	/** minimal constructor */
	public Teacher(Long id)
	{
		this.id = id;
	}

	/** full constructor */
	public Teacher(Long id, String name, Set students, Set students_1)
	{
		this.id = id;
		this.name = name;
		this.students = students;
		this.students_1 = students_1;
	}

	// Property accessors

	public Long getId()
	{
		return this.id;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public String getName()
	{
		return this.name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public Set getStudents()
	{
		return this.students;
	}

	public void setStudents(Set students)
	{
		this.students = students;
	}

	public Set getStudents_1()
	{
		return this.students_1;
	}

	public void setStudents_1(Set students_1)
	{
		this.students_1 = students_1;
	}

}
